-- GENERATED SPELL FOR [Death Talon Overseer] --


function spell0_12461(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12461', 560, 1)
end

function spell1_12461(pUnit, Event) --@Fire Blast,n/a--
pUnit:FullCastSpellOnTarget(20623,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12461', 585, 1)
end

function Sorts_12461(pUnit, Event)
local choix_sorts_12461 = math.random(0, 1)
if choix_sorts_12461 == 0 then
pUnit:RegisterEvent('spell0_12461', 1, 1)
end
if choix_sorts_12461 == 1 then
pUnit:RegisterEvent('spell1_12461', 1, 1)
end
end

function mob12461_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_12461', math.random(1500, 3000), 1)
end

function mob12461_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12461_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12461_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(12461, 1, 'mob12461_Action')
RegisterUnitEvent(12461, 2, 'mob12461_Leave')
RegisterUnitEvent(12461, 3, 'mob12461_Kill')
RegisterUnitEvent(12461, 4, 'mob12461_Die')
